from ftllibs.items.itemtools import ItemIconData

class Item_3155():
    def __init__(self):
        self.parent=False
        self.Name="Hexdrinker"
        self.IconFileName="3155.png"
        self.ID=3155
        self.Stack=0
        self.MaxStack=0
        self.Built_From=['1036','1033']
        self.Builds_Into=['3156']
        self.Tags=['spell_block','damage']
        self.Costs = 585
        self.Total_Costs = 1400
        self.Description="+25 Attack Damage +30 Magic Resist  UNIQUE Passive: If you would take magic damage that would leave you at less than 30% Health, you first gain a shield that absorbs 250 magic damage for 5 seconds (60 second cooldown)."
        self.RichText_Description=""
        self.has_active=False
        self.has_passive=True
        self.IconData=ItemIconData(self.IconFileName)
        self.Availability=["all"]
        self.Custom()

    def UpdateStats(self):
        self.parent.Attack_Damage += 25.0
        self.parent.Magic_Resist += 30.0
        self.UpdateStats_Custom()


    def Custom(self):
        pass

    def UpdateStats_Custom(self):
        pass

